<template>
<h1>双向绑定指令</h1>
  <input type="text" value="info">
  <input type="text" :value="info">
  {{info}}
  <h3>用户注册</h3>
  用户名<input type="text" placeholder="请输入用户名" v-model="user.username"><br>
  密码<input type="text" placeholder="请输入密码" v-model="user.password"><br>
  性别<input type="radio" name="gender" value="1" v-model="user.gender">男
  性别<input type="radio" name="gender" value="0" v-model="user.gender">女
  <button @click="reg">注册</button>
</template>
<script setup>
const user=ref({
  username:'杨硕',
  password:'yyds',
  gender:'女'
});
const reg=()=>{
  console.log('即将注册');

}
import {ref} from "vue";

const info=ref('即将注册')
</script>


<style scoped>

</style>